package com.liqi.monitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liqi.monitor.domain.DvUpdatePlan;
import com.liqi.monitor.domain.dto.PlanListDto;
import com.liqi.monitor.module.DvUpdatePlanModule;
import com.liqi.monitor.module.ModuleAndDriveModule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: lgh
 * @Date: 2022-10-27-10:54
 * @Description: 
 */
@Mapper
public interface DvUpdatePlanMapper extends BaseMapper<DvUpdatePlan> {
    List<ModuleAndDriveModule> getModuleAndDrive(@Param("deviceCode") String deviceCode);

    // 弃用
    //void saveUpdateSoftwareResult(@Param("planId") String planId,@Param("deviceId") String deviceId, @Param("resultDetail") List<DriveAndSdkDto> resultDetail);

    List<DvUpdatePlanModule> planList(Page<DvUpdatePlanModule> page, @Param("dao") PlanListDto dto);

    Integer getStatusBymessageCode(String msgCode);
}